package main

import (
	"log"

	"servermerge/internal/api"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	api.RegisterRoutes(r)

	log.Println("🚀 中控服务启动在 :9090")
	if err := r.Run(":9090"); err != nil {
		log.Fatalf("❌ 启动失败: %v", err)
	}
}
